import { http } from '@/utils/http'

export default {
  // 首页 banner
  getBannerList: (params) => http.get('/api/banner/list', params),
  // 活动列表
  getActivityList: (params) => http.get(`/api/activity/page`, params),
  // 活动详情
  getActivityDetail: (id) => http.get(`/api/activity/queryById/${id}`),
  // 活动考核列表
  getActivityAccessList: (params) =>
    http.get(`/hall/hallActivity/selfPage`, params),
  // 上传活动
  uploadActivity: (data) => http.post(`/hall/hallActivity/selfUpload`, data),

  // 获取活动审批列表
  getActivityApproveList: (params) =>
    http.get(`/hall/hallActivityDeclare/list`, params),
  // 审批活动
  approveActivity: (data) =>
    http.post(`/hall/hallActivityDeclare/approve`, data),
  // 集团审批
  finalApproveActivity: (data) =>
    http.post(`/hall/hallActivityDeclare/finalApprove`, data),
  // 获取活动审批详情
  getActivityApproveDetail: (params) =>
    http.get(`/hall/hallActivityDeclare/queryById`, params),

  // 获取活动评分列表
  getActivityMarkList: (params) => http.get(`/hall/hallActivity/list`, params),
  // 获取活动评分详情
  getActivityMarkDetail: (params) =>
    http.get(`/hall/hallActivity/queryById`, params),
  // 提交活动评分
  submitActivityMark: (data) => http.post(`/hall/hallActivity/comment`, data),
}
